package test1111;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.SpringMVC.serviceImpl.TestServiceImpl;

public class Testmybatis {
	@Test
	public void test(){
		ApplicationContext ac=new ClassPathXmlApplicationContext("config/spring-mybatis.xml");
		TestServiceImpl ti=(TestServiceImpl) ac.getBean("testServiceImpl");
		com.SpringMVC.model.Test t=ti.getUserName(1);
		System.out.println(t.getUsername());
		
		//测试通过证明mybatis和 spring 已经整合成功
	}

}
